package com.naiterui.ehp.bs.im.network.transcode.coders;

import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.naiterui.ehp.bs.im.exception.NaiteruiIMException;
import com.naiterui.ehp.bs.im.network.protocl.CustomizedMessage;

@Service
public class CustomizedMessageTransCoder extends AbstractTransCoder<CustomizedMessage> {

    @Override
    protected CustomizedMessage deserializeMessageContent(String content) throws NaiteruiIMException {
        CustomizedMessage customizedMessage = JSON.parseObject(content, CustomizedMessage.class);
        return customizedMessage;
    }

}
